﻿@model IEnumerable<RTW.Models.TMenu>

@{
    Layout = null;
}





<ul class="nav navbar-nav">
    @foreach (var item in Model)
    {
        <li class="active" style="border-left: none; background-color: transparent;">
            <a aria-expanded="false" target="homePage" role="button" href="@item.PageUrl">@item.MenuName</a>
            @if (item.SubMenus != null && item.SubMenus.Count > 0)
            {
                <ul class="dropdown-menu">
                    <p id="personal" runat="server"></p>
                    @foreach (var sub in item.SubMenus)
                    {
                        <li class="dropdown-submenu">
                            <a href="@sub.PageUrl"><i class="@sub.ImgPath"></i>&nbsp;@sub.MenuName</a>
                            @if (sub.SubMenus != null && sub.SubMenus.Count > 0)
                            {
                                <ul class="nav nav-second-level">
                                    @foreach (var sub3 in sub.SubMenus)
                                    {
                                        <li><a class="J_menuItem" href="@sub3.PageUrl">@sub3.MenuName</a></li>
                                    }
                                </ul>
                            }
                        </li>
                    }
                </ul>
            }
        </li>
    }
</ul>



